import Login from '../pages/Login.jsx';
import Register from '../pages/Register.jsx';
import Index from '../pages/auth/Index.jsx';
import Dashboard from '../pages/auth/Dashboard.jsx';
import TeacherIndex from '../pages/auth/TeacherIndex.jsx';
import StudentIndex from '../pages/auth/StudentIndex.jsx';
import StudentManage from '../pages/auth/StudentManage.jsx';
import ScoreMange from '../pages/auth/ScoreMange.jsx';

const routes = [
    {
        path: '/login',
        component: Login,
        noLogin: true,
    },
    {
        path: '/register',
        component: Register,
        noLogin: true,
    },
    {
        path: '/',
        component: Index,
        children: [
            {
                path: '/dashboard',
                component: Dashboard,
            },
            {
                path: '/teacher/index',
                component: TeacherIndex,
            },
            {
                path: '/student/index',
                component: StudentIndex,
            },
            {
                path: '/student/manage',
                component: StudentManage,
            },
            {
                path: '/score/manage',
                component: ScoreMange,
            },
        ],
    },
];

export default routes;
